<%-- 
    Document   : doLogin
    Created on : Nov 22, 2012, 10:19:21 PM
    Author     : Admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<%@page language="java" import="java.util.*,java.awt.*,bean.*,dao.*; "%>;
<%
String username = (String)request.getParameter("taiKhoan");
String password = (String)request.getParameter("password");
SqlConnect con = new SqlConnect();
Customer customer = con.getCustomer(username, password);
if(customer != null){
    session.setAttribute("user_cus", customer);
    response.sendRedirect("index.jsp");
    con.closeConnection();
}else{
    response.sendRedirect("customerLogin.jsp?number=1");
}

%>